<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/dist/css/layui.css"  media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/common.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/detail.css">
</head>
<body>
    <!--顶部导航-->
    <div class="header">
        <div class="w">
            <div class="logo fl"><a href="${pageContext.request.contextPath}/login">LOGO</a></div>
            <div class="search">
                <input type="text" name="" class="text" placeholder="请输入">
                <button class="btn"><i class="layui-icon layui-icon-search"></i></button>
            </div>
            <div class="r_box fr">
                <a href="${pageContext.request.contextPath}/lookCart"><i class="layui-icon layui-icon-cart-simple"></i></a>
                <span>亲，请 <a href="${pageContext.request.contextPath}/tologin">登录</a></span>
                <!--  <span class="r_box_login">${user.username}</span>-->
            </div>
        </div>
    </div>
    <!--商品详情-->
    <div class="det_info w">
        <div class="w">
            <p class="det_title">商品详情</p>
                <img src="${pageContext.request.contextPath }/${stock2.url}" alt="" class="det_pic fl">
                <div class="fl">
                    <p class="det_til">${stock2.product}</p>
                    <p class="det_price">￥${stock2.price}</p>
                    <p class="det_page">尺寸</p>
	             	<form action="${pageContext.request.contextPath}/insertCart">
					<input type="hidden" name = "stock_id" value = "${stock2.stock_id}">
					 <input type="hidden" name = "product" value = "${stock2.product}">
					 <input type="hidden" name = "price" value = "${stock2.price}">
					 <input type="hidden" name = "url" value = "${stock2.url}">
					 <input type="radio" name = "size" value = "S" class="size">S
					 <input type="radio" name = "size" value = "M" class="size">M
					 <input type="radio" name = "size" value = "L" class="size">L
					 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <input type="submit" value="加入购物车">
					 <span>${msg1}</span>
					 </form>
                </div>
            </form>
         </div>
    </div>
    <!-- 尾部-->
    <div class="footer">
        <div class="w">
            <div class="mod_help">
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
            </div>
            <div class="mod_copyright">
                <p class="mod_copyright_links">
                    关于我们  |  联系我们  |  联系客服  |  商家入驻  |  营销中心  |  手机购  |  友情链接  |  销售联盟  |  社区  |  公益  |  English Site  |  Contact U
                </p>
                <p class="mod_copyright_info">
                    地址：北京市昌平区建材城西路金燕龙办公楼一层 邮箱: zhanghj+itcast.cn <br>
                    京ICP备08001421号京公网安备110108007702
                </p>
            </div>
        </div>
    </div>
</body>
</html>